package com.byton.order.config;

import com.byton.order.service.OrderService;
import feign.Logger;
import feign.Retryer;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;


/**
 * Description:
 *
 * @Author byteon (liyong98k@163.com)
 * @Create 2025-04-02 17:01
 */
@Configuration
public class OrderConfig {

//    @Bean
//    Retryer retryer(){
//        return new Retryer.Default();
//    }

    @Bean
    Logger.Level feignLoggerLevel(){
        return Logger.Level.FULL;
    }

    @LoadBalanced
    @Bean
    RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
